import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import MyView from '../views/MyView.vue'
import CateView from '../views/CateView.vue'
import CartView from '../views/CartView.vue'
const routes = [
    {
        path: '',
        name: '',
        component: HomeView
    },
    {
        path: '/home',
        name: 'home',
        component: HomeView
    },
    {
        path: '/my',
        name: 'my',
        component: MyView
    },
    {
        path: '/cate',
        name: 'cate',
        component: CateView
    },
    {
        path: '/cart',
        name: 'cart',
        component: CartView
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
